
import com.tomasio.projects.welcome.SimpleAutorizacaoService;
import com.tomasio.projects.welcome.dto.VeiculoDTO;
import com.tomasio.projects.welcome.interfaces.AutorizacaoService;
import java.util.List;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Install
 */
public class TestRetrieveOfVeiculos {
    public static void main(String[] args) {
         AutorizacaoService service = new SimpleAutorizacaoService();
         List<VeiculoDTO> veiculos = service.findAllVeiculos();
         for (VeiculoDTO veiculoDTO : veiculos) {
             System.out.println("veiculo: " + veiculoDTO.getPlaca());
        }
         service.findVeiculo(2L);
    }
}
